const { baseName } = require('../../base.config')
import { BaseAxios } from '@/utils'

const APIGetEditorComponent = async params => BaseAxios.post(`${baseName}/editor/getEditorComponent`, params)

const APIUploadViewCover = async params => BaseAxios.post(`${baseName}/editor/uploadViewCover`, params)

const APIDeleteViewCover = async params => BaseAxios.post(`${baseName}/editor/deleteViewCover`, params)

const APIEditConfigureViews = async params => BaseAxios.post(`${baseName}/editor/editConfiguredViews`, params)

export {
  APIGetEditorComponent,
  APIUploadViewCover,
  APIDeleteViewCover,
  APIEditConfigureViews
}